package com.service;

import java.util.List;

import com.dao.EmployeeDao;
import com.entity.Employee;

public class EmployeeService {

	EmployeeDao dao=new EmployeeDao();
	public Employee login(String username, String password) {
		return dao.login(username,password);
	}
	
	public List<Employee> getAll() {
		return dao.getAll();
	}

	public Employee getByName(String string) {
		return dao.getByName(string);
	}

	public Employee getAdmin(String id) {
		return dao.getAdmin(id);
	}

	public List<Employee> getWorkers(String id) {
		return dao.getWorkers(id);
	}
	
	public Employee getWorker(String id) {
		return dao.getWorker(id);
	}
	
	public Employee getById(String id){
		return dao.getById(id);
	}

	public void add(Employee employee) {
		dao.add(employee);
		
	}

	public void update(Employee employee) {
		dao.update(employee);
	}
	

}
